package main

import (
	grpc2 "google.golang.org/grpc"
	"zg4zk2/common/consul"
	"zg4zk2/common/grpc"
	"zg4zk2/common/initialize"
	"zg4zk2/common/nacos"
	"zg4zk2/common/viper"
	"zg4zk2/service/internal"
)

func main() {
	viper.GetViper()
	nacos.NewNacos()
	nac := nacos.NacosConfig
	consul.Consul()
	initialize.MysqlInit()
	initialize.RedisInit()
	grpc.RegisterGrpc(nac.Grpc.Host, nac.Grpc.Port, func(server *grpc2.Server) {
		internal.Register(server)
	})

}
